import sys
import os

print(__file__) #当前脚本文件路径
print(os.path.dirname(__file__)) #当前脚步文件所在目录,会自动去除最后一级目录

base_path = os.path.dirname(__file__)+'/py_modules'
package_path = os.path.dirname(__file__)+'/package'

print(base_path)

sys.path.append(base_path)  #把base_path追加到python的模块查找路径

sys.path.append(package_path)  #把base_path追加到python的模块查找路径

# print(sys.path)  #模块 查找 路径

import my_first_model

import my_last_model